public class Test {
    public static void main(String[] args) {
        TestBinaryTree testBinaryTree = new TestBinaryTree();
        TestBinaryTree.TreeNode root = testBinaryTree.createTree();//接收根节点

        //第K层节点个数
        System.out.print("第k层节点个数 : ");

        System.out.println(testBinaryTree.getKLevelNodeCount(root, 1));

        //求树的高度
        System.out.print("树的高度为:");
        System.out.println(testBinaryTree.getHeight(root));

        //检测值为value的节点是否存在
        System.out.print("值为value的节点为:");
        TestBinaryTree.TreeNode node = testBinaryTree.find(root,'e');
        System.out.println(node.val);
    }
}
